// const db = require('../dbBase/db');
const Sequelize = require('sequelize');
var sequelize = require('./../dbBase/index');

const users = sequelize.define('users', {
    'emp_id': {
        'type': Sequelize.CHAR(10), // 字段类型
        'allowNull': false,         // 是否允许为NULL
        'unique': true              // 字段是否UNIQUE
    },
    'nick': {
        'type': Sequelize.CHAR(10),
        'allowNull': false
    },
    'department': {
        'type': Sequelize.STRING(64),
        'allowNull': true
    }
});

// users.sync();
module.exports = users